
extension NumExt on int{
  //转换成万
  String friendlyNumWanDes(){
    if (this<10000){
      return "$this";
    }
    else{
      double f = this*0.0001;
      return "${f.toStringAsFixed(2)} 万";
    }
  }
  //毫秒 转换为 xx:xx ，分钟，秒
  String milliSecondToMinuteAndSecondDes(){
    double seconds = this*0.001;
    int left = (seconds/60).toInt();
    int right = (seconds - left*60).toInt();
    String leftDes = left>9?"$left":"0$left";
    String rightDes = right>9?"$right":"0$right";
    return "$leftDes:$rightDes";
  }

}